package com.feisuanyz.lyweb01.pojo.query;

import lombok.Data;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.NotBlank;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 产品查询对象
 *
 * @author deng
 * @date 2025-02-26 11:57:37
 */
@Data
public class ProductQuery {

    /**
     * 分页查询页码:分页查询页码
     */
    @NotNull(groups = { QueryGroup.class }, message = "分页查询页码不能为空")
    @Schema(description = "分页查询页码:分页查询页码")
    private Integer pageIndex;

    /**
     * 分页查询每页大小:分页查询每页大小
     */
    @NotNull(groups = { QueryGroup.class }, message = "分页查询每页大小不能为空")
    @Schema(description = "分页查询每页大小:分页查询每页大小")
    private Integer pageSize;

    /**
     * 产品ID:产品ID
     */
    @NotNull(groups = { QueryGroup.class }, message = "产品ID不能为空")
    @Schema(description = "产品ID:产品ID")
    private Integer productId;

    /**
     * 关键词:搜索关键词
     */
    @NotBlank(groups = { QueryGroup.class }, message = "关键词不能为空")
    @Schema(description = "关键词:搜索关键词")
    private String keyword;
}
